export function extractUrls(data) {
    const urls = [];
    data.forEach(item => {
      if (item.url) {
        urls.push(decodeURI(item.url)); // 解码并添加URL
      }
      if (item.son) {
        urls.push(...extractUrls(item.son)); // 递归提取子项URL
      }
      if (item.son1) {
        urls.push(...extractUrls(item.son1)); // 递归提取子项URL
      }
    });
    return urls;
  }